package com.geek.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("geek.aliyun")
@Data
public class GeekAliyunProperties {
    String accessKeyId; // wd.aliyun.access-key-id
    String accessKeySecret; // wd.aliyun.access-key-secret
    Oss oss; // wd.aliyun.oss
    Sms sms; // wd.aliyun.sms

    @Data
    public static class Oss {
        String bucket; // wd.aliyun.oss.bucket
        String endPoint; // wd.aliyun.oss.end-point
        String urlPrefix; //wd.aliyun.oss.url-prefix
    }

    @Data
    public static class Sms {
        String signName; //wd.aliyun.sms.sign-name
        String templateCode; //wd.aliyun.sms.template-code
        String region;
    }
}
